package com.bl.student.dao.repository;

import com.bl.student.dao.model.CommentEntity;
import com.bl.student.dao.model.custom.UserPointEntity;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

/**
 * Created by liangweikang on 18/7/21.
 */
public interface UserPointRepository extends JpaRepository<UserPointEntity, String> {

    Page<UserPointEntity> findByUserIdOrderByCreateTimeDesc(String userId, Pageable pageable);

    Page<UserPointEntity> findByUserIdAndIsOutOrderByCreateTimeDesc(String userId, String isOut, Pageable pageable);


}
